﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Nova_BLL
{
    public class TPosState
    {
        Nova_DAL.TPosState Nova_DAL_TPosState = new Nova_DAL.TPosState();
        DataSet ds = null;

        ///<summary>
        ///获取货位状态对应图
        ///</summary>
        ///<param name="sQL">SQL</param>
        ///<returns>返回string</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-7-1]
        ///</summary>
        public string strPosImg(string PosID)
        {
            string strPosImg = "";
            try
            {
                strPosImg = Nova_DAL_TPosState.strPosImg(PosID);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return strPosImg;
        }

        ///<summary>
        ///获取货位状态信息
        ///</summary>
        ///<param name="sQL">SQL</param>
        ///<returns>返回dataset</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-7-1]
        ///</summary>
        public DataSet DataListPosState()
        {
            try
            {
                ds = Nova_DAL_TPosState.DataListPosState();
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return ds;

        }

        ///<summary>
        ///获取货位状态对应数字
        ///</summary>
        ///<param name="sQL">SQL</param>
        ///<returns>返回string</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-7-1]
        ///</summary>
        public int intPosID(string PosImg)
        {
            int iPosID = 0;
            try
            {
                iPosID = Nova_DAL_TPosState.intPosID(PosImg);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return iPosID;
        }
    }
}
